package com.amigo.online.provider.video.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import com.amigo.online.common.core.mybatis.MyMapper;
import com.amigo.online.common.param.dto.video.MusicQueryDto;
import com.amigo.online.provider.video.model.entity.Music;

@Mapper
@Component
public interface MusicMapper extends MyMapper<Music> {

    List<Music> queryListWithPage(MusicQueryDto dto);

    List<Music> queryByIdList(@Param("musicIdList") List<Long> musicIdList, @Param("userId") Long userId);

    List<Music> getAll();

    List<Long> queryIdList(MusicQueryDto dto);

    Music queryById(MusicQueryDto dto);

    List<Music> getMusicByIds(@Param("ids") List<Long> ids);
}

